import Layout from '@/layout'

const systemManageRouter = {
  path: '/system-management',
  component: Layout,
  redirect: 'noRedirect',
  name: 'system-management',
  meta: {
    title: '系统管理',
    icon: 'component'
  },
  children: [
    {
      path: 'system-module-management',
      component: () => import('@/views/system-manage/module-management/module-management.vue'),
      name: 'system-module-management',
      meta: {
        title: '菜单管理',
        noCache: true
      }
    },
    {
      path: 'role-management',
      component: () => import('@/views/system-manage/role-manage/role-manage'),
      name: 'role-management',
      meta: {
        title: '部门管理',
        noCache: true
      }
    },
    {
      path: 'dictionary-management',
      component: () => import('@/views/system-manage/dictionary-management/dictionary-management.vue'),
      name: 'dictionary-management',
      meta: {
        title: '字典管理',
        noCache: true
      }
    },
    {
      path: 'dictionary-list',
      component: () => import('@/views/system-manage/dictionary-management/dictionary-list/dictionary-list.vue'),
      name: '数据字典',
      meta: {
        title: '数据字典',
        noCache: false
      }
    },
    {
      path: 'system-settings',
      component: () => import('@/views/system-manage/system-settings/system-settings.vue'),
      name: 'system-settings',
      meta: {
        title: '系统设定',
        noCache: true
      }
    }
  ]
};

export default systemManageRouter
